package com.zhb.lkd.enums;

import lombok.Getter;

@Getter
public enum HttpsCode {
    SUCCESS(200, "ok", ""),
    PARAMS_ERROR(501, "请求参数错误", ""),
    PASSWORD_ERROR(501, "账户或密码错误", ""),
    NULL_ERROR(501, "请求数据为空", ""),
    USET_NOT(501, "账户不存在", ""),
    DATA_ERROR(501, "当前存在数据不允许删除", ""),
    NOT_LOGIN(401, "未登录", ""),
   LOGIN_NOT_NO(501, "登录失败", ""),
    NO_AUTH(402, "无权限", ""),
    SYSTEM_ERROR(500, "系统内部异常", "");

    /**
     * 状态码信息
     */
    private final int code;
    /**
     * 状态码详情
     */
    private final String message;
    /**
     * 详情
     */
    private final String description;

    HttpsCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }
}
